package org.JQbitorrentClinet.request.search;

import com.google.gson.reflect.TypeToken;
import lombok.Builder;
import org.JQbitorrentClinet.base.BasePostUrlEncodedParam;
import org.JQbitorrentClinet.pojo.search.SearchJobStatus;

import java.util.List;

@Builder
public class SearchStatusParam extends BasePostUrlEncodedParam {
    Integer id;

    public SearchStatusParam(Integer id) {
        this.id = id;
        responseType = new TypeToken<List<SearchJobStatus>>() {
        }.getType();
    }

    @Override
    public String getApiUrl() {
        return "/api/v2/search/status";
    }
}
